package com.uniandes.modelviewer.dsl

class MetaModelDSLTagLib {
	
	def metaModelsList = { attrs, body ->
		def metaModels = EcoreMetaModel.list(sort:"name",order:"asc")

		for(mmdlDSL in metaModels)
		{
			//out<< g.link(sdf)
			out<<"<li id=mModel."+mmdlDSL.id+"><a href=/GrailsModelViz/ecoreMetaModel/show/"+mmdlDSL.id+">"+ mmdlDSL.name+" Metamodel"+ "</a>"
			out<< "</li>"
		}

		
	}

}
